package com.ruoyi.statistics.service.impl;

import com.ruoyi.statistics.domain.AgentRank;
import com.ruoyi.statistics.mapper.SysStatisticsAgentRankMapper;
import com.ruoyi.statistics.service.ISysStatisticsAgentRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysStatisticsAgentRankServiceImpl implements ISysStatisticsAgentRankService {
    @Autowired
    SysStatisticsAgentRankMapper sysStatisticsAgentRankMapper;

    @Override
    public List<AgentRank> AgentRankBySpendAmountDesc() {
        return sysStatisticsAgentRankMapper.AgentRankBySpendAmountDesc();
    }

    @Override
    public List<AgentRank> AgentRankBySpendAmountAsc() {
        return sysStatisticsAgentRankMapper.AgentRankBySpendAmountAsc();
    }

    @Override
    public List<AgentRank> AgentRankByRechargeAmountDesc() {
        return sysStatisticsAgentRankMapper.AgentRankByRechargeAmountDesc();
    }

    @Override
    public List<AgentRank> AgentRankByRechargeAmountAsc() {
        return sysStatisticsAgentRankMapper.AgentRankByRechargeAmountAsc();
    }

}
